package com.example.victory.swagger.model;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * 客户信息
 */
@ApiModel(description = "客户信息")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class SalaryInfo   {
  @JsonProperty("mySalary")
  private String mySalary = null;

  @JsonProperty("details")
  @Valid
  private List<KeyValueDetail> details = null;

  public SalaryInfo mySalary(String mySalary) {
    this.mySalary = mySalary;
    return this;
  }

  /**
   * 应发工资
   * @return mySalary
  **/
  @ApiModelProperty(example = "10000", value = "应发工资")


  public String getMySalary() {
    return mySalary;
  }

  public void setMySalary(String mySalary) {
    this.mySalary = mySalary;
  }

  public SalaryInfo details(List<KeyValueDetail> details) {
    this.details = details;
    return this;
  }

  public SalaryInfo addDetailsItem(KeyValueDetail detailsItem) {
    if (this.details == null) {
      this.details = new ArrayList<KeyValueDetail>();
    }
    this.details.add(detailsItem);
    return this;
  }

  /**
   * 附加信息
   * @return details
  **/
  @ApiModelProperty(value = "附加信息")

  @Valid

  public List<KeyValueDetail> getDetails() {
    return details;
  }

  public void setDetails(List<KeyValueDetail> details) {
    this.details = details;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SalaryInfo salaryInfo = (SalaryInfo) o;
    return Objects.equals(this.mySalary, salaryInfo.mySalary) &&
        Objects.equals(this.details, salaryInfo.details);
  }

  @Override
  public int hashCode() {
    return Objects.hash(mySalary, details);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SalaryInfo {\n");
    
    sb.append("    mySalary: ").append(toIndentedString(mySalary)).append("\n");
    sb.append("    details: ").append(toIndentedString(details)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

